package com.bdqn.ch06.service;

import com.bdqn.ch06.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface UserService {
    public Page<User> findPageByMap(Map param, Pageable pageable);

    public User findByUserNameBiz(String uname);

    public List<User> getUserListBiz();

    public void deleteByIdBiz(Long id);

    public void saveUser(User user);//适用新增和修改

    public User getByUserId(Long id);
}
